
<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li>
			<a href="{:url('/admin/index')}">首页</a>
		</li>
		<li>
			<a href="{:url('/admin/car/index')}">业务管理</a>
		</li>
		<li>
			<a href="{:url('index')}">公司管理</a>
		</li>
		<li>
			<a href="{:url('index')}">用车公司管理</a>
		</li>
		<li class="am-active">{$item.car_use_id?用车公司编辑:添加用车公司}</li>
	</ol>
	<form class="am-form-inline tpl-form-border-form" action="" data-ajax="1" data-check="1">
		<input type="hidden" name="car_use_id" value="{$item.car_use_id}" />
		<div class="am-u-sm-6">
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">公司名称： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="name" data-check='require' data-msg="公司名称不能为空" value="{$item.name}" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">来源类型： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<select name="car_use_type" multiple data-am-selected="{btnWidth: '100%'}">
								{$car_use_types}
							</select>
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">公司简称： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="abbreviation"  value="{$item.abbreviation}" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">公司代码： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="code" value="{$item.code}" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">登录账号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="account" value="{$item.account}" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>
			<!--<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">对账账号： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="" value="" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>-->
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">联系人： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="contacts" value="{$item.contacts}" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">联系电话： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="phone" value="{$item.phone}" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>
			<!--<div class="am-u-sm-12 cl-p">
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12">
					<div class="am-u-sm-7">
						<label for="user-name" class="am-u-sm-6 am-form-label cl-p" style="line-height: 35px;">是否签约： </label>
						<div class="am-form-group am-u-sm-6 cl-p">
							<div class="am-u-sm-12 cl-p" style="line-height: 35px;">
								<input type="radio" name="sign" value="option1" checked>是
								<input type="radio" name="sign" value="option1">否
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-7">
					<label for="user-name" class="am-u-sm-6 am-form-label cl-p" style="line-height: 35px;">是否可开专票： </label>
					<div class="am-form-group am-u-sm-6 cl-p">
						<div class="am-u-sm-12 cl-p" style="line-height: 35px;">
							<input type="radio" name="special_ticket" value="option1" checked>是
							<input type="radio" name="special_ticket" value="option1">否
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12">
					<div class="am-u-sm-7">
						<label class="am-u-sm-6 am-form-label am-text-truncate cl-p" style="line-height: 35px;">打车是否不受支付限制： </label>
						<div class="am-form-group am-u-sm-6 cl-p">
							<div class="am-u-sm-12 cl-p" style="line-height: 35px;">
								<input type="radio" name="is_limit" value="option1" checked>是
								<input type="radio" name="is_limit" value="option1">否
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>-->
			
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">地址： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<input type="text" class="tpl-form-input" name="address" value="{$item.address}" style="line-height: 21px;" />
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px ;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-name" class="am-u-sm-4 am-form-label cl-p" style="line-height: 35px;">备注： </label>
					<div class="am-form-group am-u-sm-8 cl-p">
						<div class="am-u-sm-12 cl-p">
							<textarea class="" rows="10" name="ps">{$item.ps}</textarea>
						</div>
					</div>
				</div>
			</div>
			<div class="am-u-sm-12" style="margin-bottom:10px;">
				<div class="am-u-sm-4">&nbsp;</div>
				<div class="am-u-sm-4">
					<button type="button" class="am-btn am-btn-sm am-btn-primary tpl-btn-bg-color-success keep">保存</button>
					<a href="{:url('index')}" type="button" class="am-btn am-btn-sm am-btn-danger tpl-btn-bg-color-success">返回</a>
				</div>
				<div class="am-u-sm-4">&nbsp;</div>
			</div>

		</div>
		<div class="am-u-sm-6">
			<!--单位性质-->
			<input type="hidden" name="prop" class="prop" value=""/>
			<label for="user-name" class="am-u-sm-12  cl-p" style="line-height: 35px;">单位性质： </label>
			<div class="am-form-group am-u-sm-12 cl-p">
				<ul id="ztreeid" class="ztree"></ul>
			</div>
			<label for="user-name" class="am-u-sm-12  cl-p" style="line-height: 35px;">行政执法： </label>
			<div class="am-form-group am-u-sm-12 cl-p">
				<label style="font-size: 16px;color: #888;font-weight: inherit;"><input type="radio" name="law_type" {if $item.law_type==1} checked="checked" {/if} value="1" />非行政执法</label>
				<label style="font-size: 16px;color: #888;font-weight: inherit;"><input type="radio" name="law_type" {if $item.law_type==2} checked="checked" {/if} value="2" />行政执法</label>
			</div>
			<div class="am-u-sm-12 cl-p" style="margin-bottom:10px ;margin-top: 10px;">
				<div class="am-u-sm-12 cl-p">
					<label for="user-weibo"  class="am-u-sm-12 cl-p">营业执照照片:</label>
					<div class="am-u-sm-12 cl-p">

						<div class="am-form-group am-u-sm-3 cl-p">

							<div class="am-u-sm-10 am-margin-top-xs cl-p">
								<div class="am-u-sm-12 cl-p">
									<div class="am-form-group file-w">
										<div style="width: 150px;height: 100px;">
											<img class="fileimg" data-magnify="1" src="{if $item.license}{:CxImg($item.license)}{else/}{$static_dir}/assets/img/noimg.gif{/if}" style="width: 100%;height: 100%;" />
											<!--<img src="{:CxImg($item.driving_license_img2)}" alt="">-->
										</div>
										<button type="button" data-type='file' class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加图片</button>
										<input type="file" name="license" data-type='img' style="display: none;">
									</div>
	
								</div>
								<!--<div class="am-form-group am-form-file showimg">
									<div class="tpl-form-file-img">
										<img src="{:CxImg($item.license)}" alt="营业执照">
									</div>
									<button type="button" class="am-btn am-btn-danger am-btn-sm "><i class="am-icon-cloud-upload"></i> 添加照片</button>
									<input id="doc-form-file" type="file" name="license">
								</div>-->

							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<script src="{$static_dir}/assets/js/jquery.ztree.core.js"></script>
<script src="{$static_dir}/assets/js/jquery.ztree.excheck.js"></script>